import axios from "@/axios/index";
export const getAllButton=(params)=>{
    return axios({
        method:'get',
        url:'sys/button/getAllButton',
        params:params
    })
}

export const insertButton=(params)=>{
    return axios({
        method:'post',
        url:'sys/button/insertButton',
        data:params
    })
}

export const insertRoleButton=(params)=>{
    return axios({
        method:'post',
        url:'sys/button/insertRoleButton',
        data:params
    })
}

export const getRoleButton=(params)=>{
    return axios({
        method:'get',
        url:'sys/button/getRoleButton',
        params:params
    })
}

export const getUserButton=(params)=>{
    return axios({
        method:'get',
        url:'sys/button/getUserButton',
        params:params
    })
}
